#pragma once

class CVARBinary;
class ISerialize
{
public:
	virtual bool writeTo(CVARBinary &bin) = 0;
	virtual bool readFrom(CVARBinary &bin) = 0;
	virtual size_t serialSize() = 0;
protected:
	virtual bool checkSize(CVARBinary &bin);
};
